package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class Details extends AbstractMethod {
    private static final String name = "details";
    /**
    Template for constructing a detailed HTML message for the alert. The same template data is available as the AlertNode.Message property, in addition to a Message field that contains the rendered Message value.
    **/
    /**
    用于构造警报的详细HTML消息的模板。除了包含呈现的Message值的Message字段之外，可以使用相同的模板数据作为AlertNode.Message属性。
    **/
    public Details(String alert) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new SingleQuotesArg(alert));


    }
}
